package kr.co.goodwilldd.entity.menus.model;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;

@XmlRootElement(name = "menuItem")
@XmlType(name = "MenuItem", namespace = "kr.co.goodwilldd.entity.menus.model.MenuItemEntity")
@JsonAutoDetect
@JsonSerialize(include = Inclusion.NON_DEFAULT)
public class MenuItemEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7753824939704531794L;
	int parentSeq;
	int childSeq;
	String menuName;
	String links;
	String types;
	int orders;
	String authority;

	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	public int getParentSeq() {
		return parentSeq;
	}

	public int getChildSeq() {
		return childSeq;
	}

	public String getMenuName() {
		return menuName;
	}

	public String getLinks() {
		return links;
	}

	public String getTypes() {
		return types;
	}

	public int getOrders() {
		return orders;
	}

	@XmlElement(name = "parentSeq")
	public void setParentSeq(int parentSeq) {
		this.parentSeq = parentSeq;
	}

	@XmlElement(name = "childSeq")
	public void setChildSeq(int childSeq) {
		this.childSeq = childSeq;
	}

	@XmlElement(name = "menuName")
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	@XmlElement(name = "links")
	public void setLinks(String links) {
		this.links = links;
	}

	@XmlElement(name = "types")
	public void setTypes(String types) {
		this.types = types;
	}

	@XmlElement(name = "orders")
	public void setOrders(int orders) {
		this.orders = orders;
	}

	public String getAuthority() {
		return authority;
	}

	@XmlElement(name = "authority")
	public void setAuthority(String authority) {
		this.authority = authority;
	}

}
